﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PostViewFrontPage.ascx.cs" Inherits="themes_arthemia_PostViewFrontPage" %>

<div id="top" class="clearfloat">
<div id="headline">

<% if (Page.User.Identity.IsAuthenticated){ %>
<script type="text/javascript">
    function showHide() {
        var divE = document.getElementById("SettingsForm");
        if (divE.style.display == 'none')
            divE.style.display = 'block';
        else
            divE.style.display == 'none';
    
    }
</script>
    <div id="ThemeSettings">
    <h4><span>Theme Settings</span> <a href="javascript:showHide();">show/hide</a></h4>
    <div id="SettingsForm" style="border:1px solid gray;padding:10px;height:83px;display:none;">
    <span class="ThemeLabel">Headline category:</span>
    <asp:DropDownList ID="DdlHeadline" CssClass="ThemeOption" runat="server">
    </asp:DropDownList><br />
    <span class="ThemeLabel">Featured category:</span>
    <asp:DropDownList ID="DdlFeatured" CssClass="ThemeOption" runat="server">
    </asp:DropDownList><br />
    <asp:Button CssClass="ThemeSettingsSubmit" ID="BtnSave" runat="server" Text="Save" OnClick="BtnSave_Click" />
    </div>
</div> 
  <%} %>

<img height="21" width="75" alt="" runat="server" src="~/themes/arthemia/images/headline.png"/>
<div class="title">
<a href="<%=Post.RelativeLink %>" rel="bookmark" ><%=Server.HtmlEncode(Post.Title) %></a>
</div>
<div class="meta">
[<%=Post.DateCreated.ToLongDateString() %> |
<a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Post.ApprovedComments.Count %> <%=Resources.labels.comments %></a>]
</div>
<a href="<%=Post.RelativeLink %>" rel="bookmark" >
<%= getImage(true,Post.Content) %>
</a>
<%=Body %>
</div>
<div id="featured">
<img height="17" width="72" alt="" runat="server" src="~/themes/arthemia/images/featured.png"/>
<asp:PlaceHolder ID="leftcontent" runat="server"></asp:PlaceHolder>
</div>
</div> 
<div id="middle" class="clearfloat">
<img class="clearfloat" alt="" runat="server" src="~/themes/arthemia/images/category.png"/>
<asp:PlaceHolder ID="phCategoryList" runat="server"></asp:PlaceHolder>

</div> 

